
package com.rookie.quartz.test.controller;

import com.rookie.quartz.test.entity.ScheduleJobLogEntity;
import com.rookie.quartz.test.service.ScheduleJobLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 定时任务日志
 *
 * @author rookie
 */
@RestController
@RequestMapping("/sys/scheduleLog")
public class ScheduleJobLogController {
	@Autowired
	private ScheduleJobLogService scheduleJobLogService;

	
	/**
	 * 定时任务日志信息
	 */
	@RequestMapping("/info/{logId}")
	public ScheduleJobLogEntity info(@PathVariable("logId") Long logId){
		return scheduleJobLogService.getById(logId);

	}
}
